module aluctr (aluop,funct,aluctr);
    input   [3:0]   aluop;
    input   [1:0]   funct;
    output  [3:0]   aluctr;

    assign  aluctr =    (aluop[3:1]==3'b101) ? {1'b0,~aluop[0],funct} : aluop;
endmodule
